from bqtool.utils.tornado_server import server

def test(a,c):
    return str(int(a)+int(c))

def dic(a):
    return {"txt":a}


# 接口参数，调用时以"b"、"d"为准
server.add_handler("/index", test, "b","d")
server.add_handler("/dic", dic, "a")
server.start_http_server()
print('ok')